import java.util.Map;
import java.util.Set;
import java.util.TreeMap;


public class text79 {
    public static void main(String[] args) {
        TreeMap<String,Integer>a=new TreeMap<>();
        a.put("xiaofang",1);
        a.put("xiaohai",2);
        a.put("xiaosun",3);
        //System.out.println(a);
        Set<Map.Entry<String,Integer>>m=a.entrySet();
        for(Map.Entry<String,Integer>l:m)
        {
            System.out.println("Key:"+l.getKey()+' '+"Value:"+l.getValue());
        }


    }

}
